package com.zmj.sy.mom.srv.aps.bean.entity.mes;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseEntity;
import com.zmj.sy.mom.srv.aps.utils.Comment;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Comment("工单明细任务")
@Getter
@Setter
@TableName("tb_mes_work_detail_task")
public class WorkDetailTask extends BaseEntity {

    private Integer apsWorkDetailId;

    @Comment("物料名称")
    private String materName;

    @Comment("物料编码")
    private String materCode;

    @Comment("完工数量")
    private Integer finishCount;

    @Comment("操作失败零件数量")
    private Integer failCount;

    @Comment("工作组编号")
    private String groupCode;

    @Comment("零件图号")
    private String plmid;

    @Comment("工序编号")
    private String phaseCode;

    @Comment("下道工作组编号")
    private String nextGroupCode;

    @Comment("下道工序编号")
    private String nextPhaseCode;

    @Comment("上道工序编号")
    private String prePhaseCode;

    @Comment("工序名称")
    private String phaseName;

    @Comment("工单状态  1待开工 2开工中 3已完成")
    private Integer status;

    @Comment("总数量")
    private Integer totalCount;

    @Comment("实际开始时间")
    private LocalDateTime actualStartDateTime;

    @Comment("实际完工时间")
    private LocalDateTime actualEndDateTime;

//    @Comment("套料零件的ID")
//    private Integer partId;

    @Comment("套料零件的图纸")
    private String partPath;

    @Comment("计划开始时间")
    private LocalDateTime planStartDateTime;

    @Comment("计划完成时间")
    private LocalDateTime planEndDateTime;

    @Comment("订单号，多个逗号分隔")
    private String orderCode;

    @Comment("规格（mm）")
    private String norm;

    @Comment("材质")
    private String texture;

    @Comment("宽度(mm)")
    private BigDecimal width;

    @Comment("长度(mm)")
    private BigDecimal length;

    @Comment("厚度(mm)")
    private BigDecimal thickness;

    @Comment("钢板号")
    private String plateCode;

    @Comment("切割编号也就是套料图号")
    private String nestId;

    @Comment("工位编号")
    private String stationCode;

    @Comment("重量（KG）")
    private BigDecimal weight;

    @Comment("NestPlate表的ID")
    private Integer nestPlateId;

    @Comment("类型 1钢板 2零件")
    private Integer type;

    @Comment("类型 订单id")
    @TableField(exist = false)
    private Integer orderId;

    @Comment("施工号")
    @TableField(exist = false)
    private String constructNo;

}
